//
//  MetaDataTool.h
//  团购
//
//  Created by 樊荣海 on 15/1/22.
//  Copyright (c) 2015年 樊荣海. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import "CitySectionmodel.h"
#import "Citymodel.h"
#import "DBTool.h"
#import "common.h"
#import "Catemodel.h"
#import "PinyinTool.h"
#import "Ordermodel.h"

@interface MetaDataTool : NSObject

singleton_interface(MetaDataTool)

- (void)updateVisitedCity;

//所有城市组
@property(strong, nonatomic, readonly) NSArray *totalCitySections;

//所有城市字典-- key-城市名, value--citymodel
@property(strong, nonatomic, readonly) NSDictionary *totalCities;

//下拉所有分类
@property(strong, nonatomic, readonly) NSArray *totalCategories;

//下拉所有商品分类
@property(strong, nonatomic, readonly) NSArray *totalOrders;

//所有城市的拼音
//@property(strong, nonatomic, readonly) NSArray *allCityPinyin;
//
////所有城市首字母组成 -- beijing--> bj
//@property(strong, nonatomic, readonly) NSArray *allCityFirstPinyin;

//传入一个字符, 返回一个citymodel数组
- (NSArray *)citymodelsWithString:(NSString *)string;

@end
